# -*- coding:utf-8 -*-
"""

自定义邮件发送

"""
from django.core import mail
from Main.settings import EMAIL_HOST_USER


def send(sub, msg):
    subject = sub
    message = "消息内容"
    html_message = f"<h4>{msg}</h4>"
    from_email = EMAIL_HOST_USER
    recipient_list = ["17782384897@163.com"]
    mail.send_mail(subject=subject, message=message, from_email=from_email, recipient_list=recipient_list,
                   fail_silently=False, auth_user=None, auth_password=None,
                   connection=None, html_message=html_message)
